
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
 
<head> 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
  <title>Highrise: Tasks</title> 
  <script type="text/javascript"> 
//<![CDATA[
function async(f) { async.f.push(f) }; async.f = []
//]]>
</script> 
  <script type="text/javascript"> 
//<![CDATA[
var RAILS_ENV = "production"
//]]>
</script> 
	<script src="<?php echo base_url();?>js/jquery-1.4.2.min.js"></script>

<link type="text/css" rel="stylesheet" href="<?php echo base_url();?>style/Public.css" />
  <link href="<?php echo base_url();?>style/all.css" media="screen" rel="stylesheet" type="text/css" /> 
  <link href="<?php echo base_url();?>style/application.css" media="print" rel="stylesheet" type="text/css" /> 
  <!--[if IE]><link href="https://d1a993iq9azmzq.cloudfront.net/rev_b499db4//stylesheets/ie/base.css" media="screen" rel="stylesheet" type="text/css" /><![endif]--> 
  <link href="<?php echo base_url();?>style/blue.css" media="screen" rel="stylesheet" title="Theme" type="text/css" /> 
  <noscript><style type="text/css">#app_header, div.wrapper { display: none }</style></noscript> 
  
</head> 
 
<body class="clearfix upcoming tasks narrow_page_with_sidebar_outside webkit  windows"  onload="setupZoom()"> 
  
 
  
 
 
  <div id="quick_show_window" style="display: none"> 
    <div class="quick_show_window_position"> 
      <div class="quick_show_window_wrapper"> 
        <div class="quick_show_window_content"> 
        </div> 
      </div> 
    </div> 
  </div> 
 
  <div id="task_flash" style="display: none"> 
    <div class="inner_task_flash"> 
    </div> 
  </div> 
 
  <noscript> 
  <div class="javascript_disabled_notification">
    <div class="inner">
      <h1>You need to change a setting in your web browser</h1>
      <p>Highrise requires a browser feature called <strong>JavaScript</strong>. All modern browsers support JavaScript. You probably just need to change a setting in order to turn it on.</p>
 
      <p>Please see: <a href="http://www.google.com/support/bin/answer.py?answer=23852">How to enable JavaScript in your browser</a>.</p>
 
      <p>If you use ad-blocking software, it may require you to allow JavaScript from highrisehq.com.</p>
 
      <p>Once you've enabled JavaScript you can <a href="">try loading this page again</a>.</p>
 
      <p>Thank you.</p>
    </div>
  </div>
</noscript> 
 
 
	<div id="app_header"> 
	<div class="background"></div> 
	<div class="boundary"> 
		
		  <div id="upgrade_bar"> 
		    <a href="/account" behavior="return_to">Upgrade your free account</a> 
		    to manage additional contacts, upload files, invite more users, and get more out of Highrise.
		  </div> 
		
 
		<div id="inner_header_wrapper"> 
			<a href="/" id="app_logo"><img alt="Logo-topleft" src="<?php echo base_url();?>images/logo-topleft.png" style="padding-top: 8px; width="116" _height="16" /></a> 
 
			<table id="page_actions"> 
				<tr> 
					<td class="tiny"> 
						<div class="menu_container ie6_add_ctn" > 
							
								<span class="action"><a href="<?php echo site_url('gs/showcustomerindex');?>" style=" _background:none" behavior="return_to"><span style=" _background:none; _cursor:pointer">添加联系人</span></a></span> 
	            	
						</div> 
					</td> 
					<td class="tiny"> 
						<div class="menu_container ie6_add_cmp" style="_width:90px" > 
							<span class="action"><a href="<?php echo site_url('gs/showAddgs');?>" behavior="new_task_button"  style=" _background:none" class="menu_target"><span style=" _background:none; _cursor:pointer">增加公司</span></a></span> 
							<div id="balloon_new_task" class="balloon left menu_content task_form_balloon"> 
  <!-- balloon pointer --> 
  <div class="balloon_pointer"> 
    <div class="balloon_arrow menu_target"></div> 
    <div class="balloon_arrow_border"></div> 
  </div> 
  
  <!-- balloon content --> 
  <div class="balloon_wrapper"> 
    
    
 
    <div class="balloon_content"> 
      
<div class="new_task"> 
  <form action="/tasks" class="new_task" id="form_task" method="post" onsubmit="$(this).addClassName('busy'); new Ajax.Request('/tasks', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="o4Fdt8+/9jm07a1S0z9hIQaVK5gljM9kVBTEXwafSNc=" /></div> 
    
    
 
    <div id="form_body_task" class="task_form"> 
 
  <input id="from" name="from" type="hidden" value="tasks" /> 
<input id="collection" name="collection" type="hidden" value="upcoming" /> 
 
  <div class="new_task"> 
    <h3>Add a new task</h3> 
  
    <p class="task_body"> 
      <input class="autofocus" id="body_task" name="task[body]" size="30" type="text" /> 
    </p> 
 
    <div id="controls_task" class="controls"> 
      <h5>When's it due?</h5> 
      <p> 
        <select name="task[frame]" onchange="Tasks.changeFrame(this)"><option params="{&quot;task[due_at][am_pm]&quot;:&quot;pm&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-18&quot;,&quot;task[due_at][minute]&quot;:&quot;30&quot;,&quot;task[due_at][hour]&quot;:&quot;1&quot;}" selected="selected" value="today">Today</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="tomorrow">Tomorrow</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="this_week">This week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="next_week">Next week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="later">Later</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="specific">Specific date/time&hellip;</option></select> 
        <span class="link_to_set_day_and_time">or <a href="#" onclick="Tasks.changeFrame($(this).up(0).previous('select'), 'specific'); return false;">Set date/time</a></span> 
      </p> 
 
      <div class="set_day_and_time"> 
        <div class="inner"> 
          <input id="calendar_task" name="task[due_at][date]" type="hidden" value="2011-06-18" /><script type="text/javascript"> 
//<![CDATA[
async("new CalendarDateSelect(\"calendar_task\", {\"id\":\"calendar_task\"});")
//]]>
</script> 
          <div class="set_task_time"> 
            at <select id="task_due_at_hour" name="task[due_at][hour]"><option value="1" selected="selected">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
<option value="4">4</option> 
<option value="5">5</option> 
<option value="6">6</option> 
<option value="7">7</option> 
<option value="8">8</option> 
<option value="9">9</option> 
<option value="10">10</option> 
<option value="11">11</option> 
<option value="12">12</option></select>:<select id="task_due_at_minute" name="task[due_at][minute]"><option value="00">00</option> 
<option value="15">15</option> 
<option value="30" selected="selected">30</option> 
<option value="45">45</option></select><select id="task_due_at_am_pm" name="task[due_at][am_pm]"><option value="am">am</option> 
<option value="pm" selected="selected">pm</option></select> 
          </div> 
        </div> 
      </div> 
 
      
 
      <h5>Choose a category</h5> 
      <p> 
        <select id="category_task" name="task[category_id]" onchange="Tasks.changeCategory(this)"><option value="" selected="selected">None</option> 
<option value="2893097">Call</option> 
<option value="2893098">Demo</option> 
<option value="2893099">Email</option> 
<option value="2893100">Fax</option> 
<option value="2893101">Follow-up</option> 
<option value="2893102">Lunch</option> 
<option value="2893103">Meeting</option> 
<option value="2893104">Ship</option> 
<option value="2893105">Thank-you</option> 
<option value="new">New category...</option></select> 
        <a href="/task_categories" behavior="return_to" class="edit_categories">Edit categories</a> 
      </p> 
    
      <p> 
        <input name="task[public]" type="hidden" value="0" /><input class="checkbox" id="public_checkbox_task" name="task[public]" type="checkbox" value="1" /> 
        <label for="public_checkbox_task">Let everyone see this task</label> 
      </p> 
    
    </div> 
  </div> 
</div> 
 
 
    <div class="submit"> 
      <p> 
        <input name="commit" type="submit" value="Add this task" /> 
        <span>or</span> 
        <a href="#" class="menu_target admin">Cancel</a> 
      </p> 
    </div> 
  </form> 
</div> 
 
    </div> 
  </div> 
</div> 
 
 
						</div> 
					</td> 
					<td class="long"> 
	          <div id="search_wrapper"> 
	            <div class="quick_find"> 
	              <div class="field" style="position:relative;"> 
	                <input type="text" id="sidebar_live_search" name="term"
	                  class="live_search autofocus overlayable"
	                  title="Jump to a contact, case, deal, or tag..."
	                  source="/subjects/search.json"
	                  autocomplete="off" autocorrect="off" autocapitalize="off"
	                  data-focus-priority="0" /> 
	              </div> 
	            </div> 
	          </div> 
					</td> 
				</tr> 
			</table> 
 
			<div id="global_links_container"> 
			  
			    <div class="menu_container"> 
			      <a href="#" class="name menu_target"> 
			        Account &amp; settings
			        <span></span> 
			      </a> 
			      <div id="balloon_global_links" class="balloon center menu_content "> 
  <!-- balloon pointer --> 
  <div class="balloon_pointer"> 
    <div class="balloon_arrow menu_target"></div> 
    <div class="balloon_arrow_border"></div> 
  </div> 
  
  <!-- balloon content --> 
  <div class="balloon_wrapper"> 
    
    
 
    <div class="balloon_content"> 
      <ul class="global_links"> 
  <li><a href="/users/507179/edit" behavior="return_to" class="">My info</a></li> 
  
    
      <li><a href="/users" class="">Users</a></li> 
      <li><a href="/groups" class="">Groups</a></li> 
    
    <li><a href="/custom_fields" class="">Custom Fields</a></li> 
    <li><a href="/account/settings" behavior="return_to" class="">Logo and color</a></li> 
    
      <li><a href="/account" behavior="return_to" class="">Account, upgrades, billing</a></li> 
    
  
</ul> 
 
    </div> 
  </div> 
</div> 
 
 
			    </div> 
			  
 
			  <a href="<?php echo site_url('user/loginout');?>" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'delete'); f.appendChild(m);var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'o4Fdt8+/9jm07a1S0z9hIQaVK5gljM9kVBTEXwafSNc='); f.appendChild(s);f.submit();return false;">Sign out</a> 
			  <a href="http://help.37signals.com/highrise/?e=aW5mb0BhaW0tY2hpbmEuY29t&amp;u=aHR0cHM6Ly9haW0xLmhpZ2hyaXNlaHEuY29tL3Rhc2tz&amp;n=YWltY2hpbmE%3D&amp;f=amFjayBmYW4%3D" class="help" target="_blank">Help</a> 
			</div> 
		</div> 
	</div> 
</div> 
 
 

  <div id="wrapper"> 
    <div id="inner_wrapper"> 
      <div id="main_body"  class="column FRIE6" style="_float:right" > 
        
        
        

        <div id="blank_slate" class="clearfix"> 
          <div class="liner"> 
            
   <img src="<?php echo base_url();?>images/blankslate_icon_tasks.png" width="175" height="150" alt="Tasks" /> 
 
<div class="content"> 
  <h1>Tasks help you get things done.</h1> 
  <h2>Never forget to &ldquo;Call Jim at 4pm&rdquo; or &ldquo;Fax the contract to Karen tomorrow morning.&rdquo; You can set a task for yourself or assign one to someone else. Highrise will even send an email or SMS reminder so you don&rsquo;t forget.</h2> 
  <div class="menu_container" id="new_task_container_for_page"> 
    <span class="button"><a href="#" class="menu_target"><span>Add your first task</span></a></span> 
    
<div id="balloon_new_task_per_page" class="balloon left menu_content balloon_edit_task"> 
  <!-- balloon pointer --> 
  <div class="balloon_pointer"> 
    <div class="balloon_arrow menu_target"></div> 
    <div class="balloon_arrow_border"></div> 
  </div> 
  
  <!-- balloon content --> 
  <div class="balloon_wrapper"> 
    
    
      <div id="task_flash_per_page" class="balloon_flash" style="display: none"> 
        <div class="inner_task_flash"> 
</div> 
 
      </div> 
    
 
    <div class="balloon_content"> 
      
<div class="new_task"> 
  <form action="/tasks" class="new_task" id="page_form_task" method="post" onsubmit="$(this).addClassName('busy'); new Ajax.Request('/tasks', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false;"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="o4Fdt8+/9jm07a1S0z9hIQaVK5gljM9kVBTEXwafSNc=" /></div> 
    
    <input id="parent" name="parent" type="hidden" value="page" /> 
 
    <div id="page_form_body_task" class="task_form"> 
 
  <input id="from" name="from" type="hidden" value="tasks" /> 
<input id="collection" name="collection" type="hidden" value="upcoming" /> 
 
  <div class="new_task"> 
    <h3>Add a new task</h3> 
  
    <p class="task_body"> 
      <input class="autofocus" id="page_body_task" name="task[body]" size="30" type="text" /> 
    </p> 
 
    <div id="page_controls_task" class="controls"> 
      <h5>When's it due?</h5> 
      <p> 
        <select name="task[frame]" onchange="Tasks.changeFrame(this)"><option params="{&quot;task[due_at][am_pm]&quot;:&quot;pm&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-18&quot;,&quot;task[due_at][minute]&quot;:&quot;30&quot;,&quot;task[due_at][hour]&quot;:&quot;1&quot;}" selected="selected" value="today">Today</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="tomorrow">Tomorrow</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="this_week">This week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="next_week">Next week</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="later">Later</option><option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2011-06-19&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="specific">Specific date/time&hellip;</option></select> 
        <span class="link_to_set_day_and_time">or <a href="#" onclick="Tasks.changeFrame($(this).up(0).previous('select'), 'specific'); return false;">Set date/time</a></span> 
      </p> 
 
      <div class="set_day_and_time"> 
        <div class="inner"> 
          <input id="page_calendar_task" name="task[due_at][date]" type="hidden" value="2011-06-18" /><script type="text/javascript"> 
//<![CDATA[
async("new CalendarDateSelect(\"page_calendar_task\", {\"id\":\"page_calendar_task\"});")
//]]>
</script> 
          <div class="set_task_time"> 
            at <select id="task_due_at_hour" name="task[due_at][hour]"><option value="1" selected="selected">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
<option value="4">4</option> 
<option value="5">5</option> 
<option value="6">6</option> 
<option value="7">7</option> 
<option value="8">8</option> 
<option value="9">9</option> 
<option value="10">10</option> 
<option value="11">11</option> 
<option value="12">12</option></select>:<select id="task_due_at_minute" name="task[due_at][minute]"><option value="00">00</option> 
<option value="15">15</option> 
<option value="30" selected="selected">30</option> 
<option value="45">45</option></select><select id="task_due_at_am_pm" name="task[due_at][am_pm]"><option value="am">am</option> 
<option value="pm" selected="selected">pm</option></select> 
          </div> 
        </div> 
      </div> 
 
      
 
      <h5>Choose a category</h5> 
      <p> 
        <select id="page_category_task" name="task[category_id]" onchange="Tasks.changeCategory(this)"><option value="" selected="selected">None</option> 
<option value="2893097">Call</option> 
<option value="2893098">Demo</option> 
<option value="2893099">Email</option> 
<option value="2893100">Fax</option> 
<option value="2893101">Follow-up</option> 
<option value="2893102">Lunch</option> 
<option value="2893103">Meeting</option> 
<option value="2893104">Ship</option> 
<option value="2893105">Thank-you</option> 
<option value="new">New category...</option></select> 
        <a href="/task_categories" behavior="return_to" class="edit_categories">Edit categories</a> 
      </p> 
    
      <p> 
        <input name="task[public]" type="hidden" value="0" /><input class="checkbox" id="public_checkbox_task" name="task[public]" type="checkbox" value="1" /> 
        <label for="public_checkbox_task">Let everyone see this task</label> 
      </p> 
    
    </div> 
  </div> 
</div> 
 
 
    <div class="submit"> 
      <p> 
        <input name="commit" type="submit" value="Add this task" /> 
        <span>or</span> 
        <a href="#" class="menu_target admin">Cancel</a> 
      </p> 
    </div> 
  </form> 
</div> 
 
    </div> 
  </div> 
</div> 
 
 
 
  </div> 
</div> 
 
 
          </div> 
        </div> 
 
        
                <div id="screen_body"> 
        
          <!-- page sidebar --> 
          <div id="page_sidebar"> 
            <div class="liner"> 
              
  <div class="sidebox_wrapper"> 
    <div class="liner"> 
      <div class="sidebox closedbox"> 
        <h5>工作职责</h5> 
        
          <div class="ical_link"> 
			<?php echo $duty;?>
          </div> 
        
      </div> 
    </div> 
  </div> 
 
            </div> 
          </div> 
          <!--// page sidebar --> 
        
 
        <!-- page --> 
        <div id="page"> 
 
            <!-- page header --> 
            <div id="page_header_wrapper"> 
              
              <div id="page_header"> 
 
                <div class="page_header"> 
  <h1>公司信息</h1> 
</div> 
              </div> 
            </div> 
            <!--// page header --> 
 
            <!-- page contents --> 
            <div id="page_contents_wrapper" class="clearfix"> 
 
              <!-- main column --> 
              <div id="page_main_column" class="column"> 
                <div class="liner"> 
				<div id="kehu" style="display:none">
				<form action="<?php echo site_url('gs/addcustomer');?>" method="post">
				<input type="hidden" name="gsid" value="<?php echo $gsid;?>">
				客户姓名：<input type="text" name="name"/>
				电话：<input type="text" name="telephone"/>
				所在公司：<input type="text" name="gsname" value="<?php echo $gsinfo[0]->name?>"/><p/>
				电子邮箱：<input type="text" name="email"/>
				QQ：<input type="text" name="qq"/><p/>
				MSN：<input type="text" name="msn"/>
				备注：<textarea name="beizhu" ></textarea><p/>
				<input type="submit" value="提交"/>
				</form>
				</div>
<div id="page_filter" class="simple"> 
 <input type="button" value="添加客户" onClick="$('#kehu').toggle('slow')"/>
  <div id="page_filter_options"> 
    <ul class="menu_collection"> 
        <li class="menu_container category_select"> 
          <div class="balloon_menu_center"> 
            <div id="balloon_task_category" class="balloon center menu_content "> 
  <!-- balloon pointer --> 
  <div class="balloon_pointer"> 
    <div class="balloon_arrow menu_target"></div> 
    <div class="balloon_arrow_border"></div> 
  </div> 

</div> 
 
 
          </div> 
        </li> 
      
    </ul> 
    <div class="clearfix"></div> 
  </div> 
</div> 
  
    <div class="frames" id="task_frames"><div id="overdue_tasks_frame" class="frame overdue"> 
 
  <div class="untimed"> 
<div>
<table>
<tr><td>公司名称：&nbsp;&nbsp;<?php echo $gsinfo[0]->name?></td></tr>
<tr><td>公司站点：&nbsp;&nbsp;<?php echo $gsinfo[0]->website?></td></tr>
<tr><td>公司地址：&nbsp;&nbsp;<?php echo $gsinfo[0]->address?></td></tr>
</table>
</div>
<div id="task_list">
	<table>
	
	<?php foreach($customerlist as $cl){?><tr>
    <div id="task_<?php echo $cl['id'];?>" class="hover_container menu_container"> 
      <div id="show_task_13349446" class="task show_task" style=""> 
        <div id="content_task_13349446 "> 
          <div id="balloon_container_task_13349446" class="reset-on-dismissal" style="display:none"><div class="menu_content"></div></div> 
          <div class="checkbox hover_target" >
		  
		  
            <td><?php echo $cl['name']?></td>
            <td><?php echo $cl['Mobile']?></td>
            <td><?php echo $cl['email']?></td>
            <td><?php echo $cl['qq']?></td>
            <td><?php echo $cl['msn']?></td>
            <td><?php echo $cl['marks']?></td>
			
			
          </div> 
          <div class="clear"></div>
        </div> 
      </div> 
    </div></tr>
    <?php }?>
	</table>
</div> 
<form action="<?php echo site_url('track/Addtrack');?>" method="post">
<div style="margin-top:40px;">
<h3>跟踪记录：</h3>
<input type="text" name="gzcontent" style="width:500px"/>
<input type="hidden" name="gsid" value="<?php echo $gsinfo[0]->id?>"/>
<select name="cid">
<option>--选择客户--</option>
<?php foreach ($customerlist AS $cl):?>
<option value="<?php echo $cl['id']?>"><?php echo $cl['name']?></option>
<?php endforeach; ?>
</select>
&nbsp;&nbsp;&nbsp;
<input type="submit" value="提交"/>
</div>
 </form>
 
<div style="margin-top:40px;">
<table>
<?php foreach ($trackList AS $tl): ?>
	<TR>
		<TD><?php echo $tl['content']?>&nbsp;&nbsp;
		<font color="red">[<?php echo $tl['m_username']?>]</font>
		-><font color="blue">[<?php echo $tl['name']?>]</font></TD>
		<TD><?php echo date('Y-m-d H:i:s',$tl['date'])?></TD>
	</TR>
<?php endforeach;?>
</table>
</div>
 <script>

 function changestatus(obj,t_id)
 {
 	if(obj.checked)
	{
		$.get("<?php echo base_url();?>index.php/task/changestatus/"+t_id+"/1", 
		function(data)
		{
			
		});
	}else{
		$.get("<?php echo base_url();?>index.php/task/changestatus/"+t_id+"/0", 
		function(data)
		{

		});
	}
 }
 var before;
 var submitNewTask = 0;
 var textareaNum = $("textarea").length;
 function foldBox(){
	textareaNum = $("textarea").length;
	$(".folder").click(function(){
		if( $(this).parents(".show_task").children(".task_c").height() == 0 ){                 /*如果任务描述为关闭状态，将其打开*/   
			if(before != null){var a=before;                                                  /* 根据索引before  ,关闭打开的任务描述*/
				$(".task_desc_list").eq(before).css({display:"none"});
				$(".task_c").eq(before).animate({height:"0px"});
				$("textarea").eq(before).css({display:"none"});
				var con=$("textarea").eq(before).val();
				if(con !='')
				{
/*					$.get("/tms/index.php/task/addtms_desc/"+$("textarea").eq(before).attr("name")+"/"+con, 
					function(data)
					{
						//$("textarea").eq(a).value=data;
						///var  = $("#task_desc_list").eq(a).attr("id");
						$(".task_desc_list").eq(a).html(data);
					});*/
					$.ajax({  
						type: "post",  
						url: "<?php echo base_url();?>index.php/task/addtms_desc",
						dataType: "json",  
						data:"t_id="+$("textarea").eq(before).attr("name")+"&content="+con,
						success: function(json){
							//alert(json.content);
							$(".task_desc_list").eq(a).html(json.content);
						}
					}); 
					
					$("textarea").eq(a).attr("value",'');
				}
			}       
			$(this).parents(".show_task").children(".task_c").animate({height:"60px"});                        /*以动画的形式将其div的高度拉到60像素*/
			$(this).parents(".show_task").children(".task_c").children("textarea").css({display:"block",width:"98%", height:"90%"});
			$(this).parents(".show_task").children(".task_desc_list").css({display:"block",width:"90%"});
			$(this).parents(".show_task").children(".task_desc_list").animate({height:"auto",overflow:"hidden"});
			//$(this).parents(".show_task").children(".task_desc_list").css({display:"block",width:"98%", height:"90%"});
			before = $(this).index(".folder");                                                               /*把打开任务的索引保存至before 中 */
		}else{
			$(this).parents(".show_task").children(".task_c").animate({height:"0px"});
			$(this).parents(".show_task").children(".task_c").children("textarea").css({display:"none"});
		//	$(this).parents(".show_task").children(".task_desc_list").animate({height:"0px"});
			$(this).parents(".show_task").children(".task_desc_list").css({display:"none"});			
		}
		//textSubmit();
	});
}
foldBox();

function taskSubmit(){
	$("#newTaskSubmit").click(function(){
		if($("#addTask").val() != null){
			$.ajax({  
				type: "post",  
				url: "<?php echo base_url();?>index.php/task/addtask",
				dataType: "json",  
	            data:"content="+$("#addTask").val()+"&user_id="+$("#user").val()+"&t_rank="+$(":radio[name='t_rank'][checked]").val(),
				success: function(json){
					//alert(json.content);
					$("#task_list").html(json.content);
					$(".hover_container").eq(0).css({marginTop:"-22px",opacity:"0"});
					$(".hover_container").eq(0).animate({marginTop:"0px",opacity:"1"});
					foldBox();
				}
			}); 
		}

	});
}
taskSubmit();
</script>
 
  </div> 
 
  <div class="timed"> 
    
  </div> 
</div> 
<div id="today_tasks_frame" class="frame today empty"> 
  <h6 class="frame_title"> 
    Today
    
  </h6> 
 
  <div class="untimed"> 
    
  </div> 
 
  <div class="timed"> 
    
  </div> 
</div> 
<div id="tomorrow_tasks_frame" class="frame tomorrow empty"> 
  <h6 class="frame_title"> 
    Tomorrow
    
  </h6> 
 
  <div class="untimed"> 
    
  </div> 
 
  <div class="timed"> 
    
  </div> 
</div> 
<div id="this_week_tasks_frame" class="frame this_week empty"> 
  <h6 class="frame_title"> 
    This week
    
  </h6> 
 
  <div class="untimed"> 
    
  </div> 
 
  <div class="timed"> 
    
  </div> 
</div> 
<div id="next_week_tasks_frame" class="frame next_week empty"> 
  <h6 class="frame_title"> 
    Next week
    
  </h6> 
 
  <div class="untimed"> 
    
  </div> 
 
  <div class="timed"> 
    
  </div> 
</div> 
<div id="later_tasks_frame" class="frame later empty"> 
  <h6 class="frame_title"> 
    Later
    
  </h6> 
 
  <div class="untimed"> 
    
  </div> 
 
  <div class="timed"> 
    
  </div> 
</div> 
</div> 
  
 
  <div class="empty_slate"> 
    
      
        <h1>You have no tasks!</h1> 
        <p>How about that? You&rsquo;ve either finished everything or you have nothing to do!</p> 
      
    
  </div> 
 
 
 
 
                </div> 
              </div> 
              <!--// main column --> 
 
            </div> 
            <!--// page contents --> 
          
        </div> 
        <!--// page --> 
      </div> 
 
 
 
        
        
        
        <div style="margin-top: 30px"> </div>        
      </div> 
 
      <div id="global_sidebar" class="column"> 
        <div class="liner"> 
          <div id="global_nav"> 
  <ul> 
    
 
    <li id="dashboard"><a href="/" class="">Latest activity</a></li> 
    <li id="parties"><a href="/parties" class="">Contacts <span class='stat'>~1 person</span></a></li> 
    <li id="tasks"><a href="<?php echo base_url();?>index.php/task/gettotask" class="selected">任务 <span class='stat'>23 overdue</span></a></li> 
    <li id="kases"><a href="<?php echo base_url();?>index.php/task/duty/<?php echo $uid;?>" class="">工作职责 <span class='stat'>none</span></a></li> 	
    <li id="deals"><a href="<?php echo site_url('gs/');?>" class="">公司信息<span class='stat'>CustomerInfo</span></a></li> 
    <li id="search"><a href="/recordings/search" class="">Search notes</a></li> 
  </ul> 
</div> 
          
          <div id="recent_items"> 
  
    <hr /> 
  
    <h4>Recently viewed</h4> 
    <div class="recent_items"> 
      
        <a href="/deals/1123454" class="recent_item "> 
          <span class="sprite avatar blank_avatar deal deal_dollar" style="background: url(<?php echo base_url();?>images/highrise_sprites.png) no-repeat -222px -162px; width: 32px; padding-top: 32px; " title="deal??" id="">deal??</span> 
          <span class="recent_name">deal??</span> 
          <span class="recent_desc">Deal</span> 
        </a> 
      
        <a href="/people/74844834-jack" class="recent_item "> 
          <span class="sprite avatar blank_avatar person " style="background: url(<?php echo base_url();?>images/highrise_sprites.png) no-repeat -112px -148px; width: 32px; padding-top: 32px; " title="jack" id="">jack</span> 
          <span class="recent_name">jack</span> 
          <span class="recent_desc"></span> 
        </a> 
      
    </div> 
  
</div> 
          
        </div> 
      </div> 
    </div> 
  </div> 
 
  <hr style="display: none;" /> 
 
	<div id="preloaded_images" style="position:absolute; height:0px; overflow:hidden;"> 
		<img alt="Dots-white" src="<?php echo base_url();?>images/dots-white.gif" /> 
		<img alt="Dots-black" src="<?php echo base_url();?>images/dots-black.gif" /> 
	</div> 
 
  
 
  <script type="text/javascript"> 
//<![CDATA[
async("Placeholder.Overlay.wrap();")
//]]>
</script> 
 

  
  <script type="text/javascript" charset="utf-8">NREUMQ.push(["nrf2","beacon-1.newrelic.com","10f60f8605",1746,"IV1cEkFdWghSFxkQUhFZQUlaXFIBTw==",0,366])</script> 
 
</body> 
</html> 